c++编程:定义一个长度为10的数组, 直接为其赋值为1,2,3,4,5,6,7,8...答:include<iostream>#include<fstream>using namespace std;int sum(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j){return a + b + c + d + e + f + g + h + i + j;}int average(int a, int b, int c, int d, int e, int f, int...